Inside Macintosh: Sound

| Previous | Chapter contents | Chapter top | Section top | Next |

State Blocks

The stateVars field of a compressed sound header contains a pointer to a state block, defined by the StateBlock data type.

TYPE StateBlock =
RECORD
    stateVar:               ARRAY[0..stateBlockSize - 1] OF Integer;
END;
stateVar
An array of integers. This field contains state variables that need to be preserved across invocations of the compression algorithm. The size of this field is defined by a constant.
                    CONST
                        stateBlockSize                  = 64;

© 1998 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |